from django.urls import path
from .views import JobCategoriesAPIView
from home import views
from rest_framework.routers import DefaultRouter

router = DefaultRouter()
# router.register('jobList', views.JobList, basename='jobList')

urlpatterns = [
    path('job-categories/', JobCategoriesAPIView.as_view(), name='job-categories'),
    path('JobCateOne/', views.JobCateOne.as_view()),  # 查询所有一级分类
    path('jobcateList/', views.JobCateList.as_view()),  # 热门推荐的招聘信息
    path('jobList/', views.JobList.as_view()),  # 所有招聘信息
    path('companyList/', views.CompanyListView.as_view()),  # 所有公司展示
    path('jobCategories/', views.JobCategoriesListView.as_view()),  # 展示二级标题
    path('citylist/', views.CityListView.as_view()),  # 所有城市展示
    path("hot_job/", views.HotJobView.as_view()),
    path('reaa_user/', views.HrandJObView.as_view()),  # 查询角色
    path("companyDetail/", views.CompanyDetailView.as_view()),
    path("company_job/", views.Company_JobView.as_view()),
    path('interview/', views.InterviewAPI.as_view()),
    path('q1/', views.QuestionAnswerAdd.as_view()),
    path('q2/', views.QuestionAnswerView.as_view()),
    path('q3/', views.QuestionAnswerUpdate.as_view()),
    path('q4/', views.QuestionAnswerAll.as_view()),
    path('q5/', views.QuestionAnswerAllInfo.as_view()),
    path('filt/',views.JobGlobalSearchView.as_view())  # 全局搜索
]
urlpatterns += router.urls
